package com.codingfuture.erp_system.service.impl;

import com.codingfuture.erp_system.dto.MenuDto;
import com.codingfuture.erp_system.entity.RoleMenu;
import com.codingfuture.erp_system.mapper.MenuMapper;
import com.codingfuture.erp_system.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuServiceImpl implements MenuService {
    @Autowired
    private MenuMapper menuMapper;

    @Override
    public List<RoleMenu> findAll(Object uuid) {
        return menuMapper.findAll(uuid);
    }

    @Override
    public List<MenuDto> findByAll(List<RoleMenu> list) {
        return menuMapper.findByAll(list);
    }
}
